import request from '@/utils/index'

// 获取联想建议请求接口
export const getSuggestion = q => {
  return request({
    method: 'GET',
    url: '/app/v1_0/suggestion',
    params: { q }
  })
}
// 获取搜索结果请求接口
export const getSearchResult = data => {
  return request({
    method: 'GET',
    url: '/app/v1_0/search',
    params: {
      ...data
    }
  })
}
